package com.CST.mapper.ufdata;

import com.CST.entity.cb.AccvouchWorkload;
import com.CST.entity.zx.ZxDeptDirectorFund;
import com.CST.entity.zx.ZxEtlAccountInfo;
import com.CST.entity.zx.ZxFinancialBasicInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.time.LocalDate;
import java.util.List;

@Repository
public interface AccvouchMapper extends BaseMapper<AccvouchWorkload> {

    List<AccvouchWorkload> getAccvouchWorkload(String startDate,String endDate);

    List<ZxFinancialBasicInfo> collectFinancialData();

    List<ZxEtlAccountInfo> CollectVoucherData(int year, LocalDate startDate, LocalDate endDate, String period);
    

    /**
     * 从用友获取科主任基金数据
     * @param startDate
     * @param endDate
     * @param period
     * @return
     */
    List<ZxDeptDirectorFund> gatherDeptDirectorInfo(
            @Param("year") int year,
            @Param("startDate") LocalDate startDate,
            @Param("endDate") LocalDate endDate, @Param("period") String period);



}
